package com.labmi.controller.bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
import javax.faces.bean.ViewScoped;
import javax.faces.event.ActionEvent;

import com.labmi.experiment.ShoppingCart;

//@ManagedBean
//@ViewScoped
public class CartSummaryController {

	private int spinnerCounter;
	
	@ManagedProperty(value = "#{shop.cart}")
	private ShoppingCart cart;
	
	public CartSummaryController() {
		if(cart != null)
			spinnerCounter = 3;
		System.out.println(cart);
			
	}
	
	public void changeQuantity()
	{
		
	}
	
	public void removeFromCart(ActionEvent event)
	{
		
	}
	
}
